import axios from "../index.js";
// 响应命令单

// 响应命令单  编辑 列表
export const xymldSubmissionList = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/listPage",
    method: "post",
    data: data
  });
};
// 响应命令单  编辑 删除
export const deletelist = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/deleteById",
    method: "post",
    data: data
  });
};
// 响应命令单  编辑 修改
export const editlist = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/updById",
    method: "post",
    data: data
  });
};
// 响应命令单  编辑 详情
export const getinfo = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/getById",
    method: "get",
    data: data
  });
};
// 响应命令单  保存
export const xymldFeedbackSave = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/save",
    method: "post",
    data: data
  });
};
// 响应命令单  提交
export const xymldFeedbacksubmit = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/adjustSubmit",
    method: "post",
    data: data
  });
};
// 响应命令单  保存
export const xymldFeedbackapprove = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/approve",
    method: "post",
    data: data
  });
};
// 响应研判单下拉接口
export const getjudgelist = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/notCreateOrder",
    method: "post",
    data: data
  });
};
// 获取研判单数据
export const getjudgeinfo = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/getJudgeData",
    method: "get",
    data: data
  });
};

// 获取已发布响应命令单
export const getpublishedinfo = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/selectResponse",
    method: "get",
    data: data
  });
};

// 获取组织机构 部门 dept  单位unit 抄报cb  抄送cs
export const getOrgApi = (data) => {
  return axios.request({
    url: "/emergency/organization/getOrganizationList",
    method: "get",
    data: data
  });
};

// 获取人员
export const getMemberApi = (data) => {
  return axios.request({
    url: "/emergency/organization/getTestUserList",
    method: "get",
    data: data
  });
};
// 调整
export const adjustSave = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/adjust",
    method: "post",
    data: data
  });
};
// 终止
export const terminateEnd = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/terminate",
    method: "post",
    data: data
  });
};


